<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="FCK" uri="http://java.fckeditor.net" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="${staticWebsite}admin/js/common_min.js"></script>
<script type="text/javascript" src="${staticWebsite}admin/js/common.js"></script>
<link rel="stylesheet" href="${website}resource/admin/css/admin.css" type="text/css" />
		<title>城市基本信息</title>
		<script type="text/javascript">
			function changePre(value){
				document.getElementById("preImageUrl").src = value;
			}
		</script>
</head>
<body>
<div class="currentPosition"><img src="${staticWebsite}admin/images/tb.gif"/>修改城市基本信息</div>
	<form method="post" action="${website}admin/city_modifyBasicInfo.action" method="post" enctype="multipart/form-data">
		<table class="commonTable">
			<tr>
				<td width="15%" class="commonName">
					城市名称
				</td>
				<td>
					${cityInfo.cityName}
					<input type="hidden" name="cityInfo.cityName" value="${cityInfo.cityName}"/>
					<input type="hidden" name="cityInfo.cityId" value="${cityInfo.cityId}"/>
					<input type="hidden" name="cityInfo.id" value="${cityInfo.id}"/>
				</td>
			</tr>

			<tr>
				<td class="commonName">
					城市简介
				</td>
				<td>
					<textarea rows="4" cols="110" name="cityInfo.simpleDescription">${cityInfo.simpleDescription}</textarea>					
				</td>
			</tr>

			<tr>
				<td class="commonName">
					城市概览
				</td>
				<td>
					<FCK:editor instanceName="cityInfo.overview" value="${cityInfo.overview}" ></FCK:editor>
				</td>
			</tr>
			<tr>
				<td class="commonName">
					城市印象
				</td>
				<td>
					<FCK:editor instanceName="cityInfo.impression" value="${cityInfo.impression}"></FCK:editor>
				</td>
			</tr>
			<tr>
				<td class="commonName">
					城市美景
				</td>
				<td>
					<textarea cols="110" rows="4" name="cityInfo.scenicDescription">${cityInfo.scenicDescription}</textarea>
				</td>
			</tr>

			<tr>
				<td class="commonName">
					城市美食
				</td>
				<td>
					<textarea cols="110" rows="4" name="cityInfo.foodDescription">${cityInfo.foodDescription}</textarea>
				</td>
			</tr>

			<tr>
				<td class="commonName">
					城市特产
				</td>
				<td>
					<textarea cols="110" rows="4" name="cityInfo.specialtyDescription">${cityInfo.specialtyDescription}</textarea>
				</td>
			</tr>

			<tr>
				<td class="commonName">
					城市图片
				</td>
				<td>
					<input type="file"  name="imageUrl" onpropertychange="changePre(this.value)" />			
					<img id="preImageUrl" src="${cityInfo.imageUrl}"  style="display: none;"/>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input  type="submit" value="提交" />
				</td>
			</tr>
		</table>
		<table>

		</table>
	</form>
	</body>
</html>